package com.maomao.aop.proxy;

import com.maomao.aop.service.PersonImpl;
import com.maomao.aop.service.Speakable;

/**
 * Created by admin on 2018/3/21.
 */
public class PersonProxyFactory {

    public static Speakable newJdkProxy(){
        DynamicProxy dynamicProxy=new DynamicProxy(new PersonImpl());
        Speakable proxy=dynamicProxy.getProxy();
        return proxy;
    }
}
